#ifndef DYNAMICMAPMANAGEWINDOW_H
#define DYNAMICMAPMANAGEWINDOW_H

#include <QObject>
#include "protocolparse.h"
#include <QHBoxLayout>

class DynamicMap;
class DynamicMapShowWindow;

class DynamicMapManageWindow : public QObject
{
    Q_OBJECT
public:
    explicit DynamicMapManageWindow(QObject *parent = NULL);
    ~DynamicMapManageWindow();

    void set_path(QString, QString);
    void print_simulate_data(ProtocolData *simulate_data);
    DiffShowType get_diffshow_type(ProtocolData *new_data);
    void record_last_data(ProtocolData *new_data);

public slots:
    void show_file(QString, void*);

private:
    DynamicMap *map;
    ProtocolData m_last_data;

    QString run_path;

    QString m_img_path;
    QString m_xml_path;
    QString m_res_path;

private:
    void parse_path(QString &file_name, ProtocolData *data);
    void reset_path(QString);

private:
    DynamicMapShowWindow *show_widget;
};

#endif // DYNAMICMAPMANAGEWINDOW_H
